projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56343b7
)
credit2: Putting a vcpu to sleep also removes the delayed_runq_add flag
author
Keir Fraser
<keir@xen.org>
Fri, 10 Dec 2010 10:49:20 +0000
(10:49 +0000)
committer
Keir Fraser
<keir@xen.org>
Fri, 10 Dec 2010 10:49:20 +0000
(10:49 +0000)
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c
patch
|
blob
|
history
diff --git
a/xen/common/sched_credit2.c
b/xen/common/sched_credit2.c
index d5196beb5493a5ce71652eccf969cc906df1fec7..4a52a5b22ce369979b6cad84bb421db94fb4aeea 100644
(file)
--- a/
xen/common/sched_credit2.c
+++ b/
xen/common/sched_credit2.c
@@
-668,6
+668,8
@@
csched_vcpu_sleep(const struct scheduler *ops, struct vcpu *vc)
cpu_raise_softirq(vc->processor, SCHEDULE_SOFTIRQ);
else if ( __vcpu_on_runq(svc) )
__runq_remove(svc);
+ else if ( test_bit(__CSFLAG_delayed_runq_add, &svc->flags) )
+ clear_bit(__CSFLAG_delayed_runq_add, &svc->flags);
}
static void